import junit.framework.TestCase;
public class DependencyTest extends TestCase {

	public void testIsDeclaration() {
		Dependency g = new Dependency();
		assertEquals(true, g.isDeclaration("a.class"));
		assertEquals(false, g.isDeclaration("a.class.java"));
		assertEquals(false, g.isDeclaration("a.java"));
	}

	public void testMain() {
		Dependency g = new Dependency();
		g.input_dependency_graph("src/dep.txt");
		g.condensing();
		g.transitive_closure();
		g.partitioning();
		g.output_dependency_graph();
	}	
} 
